import request from '@/utils/request'

// 查询评级配置列表
export function listDealConfigRating(query) {
  return request({
    url: '/configrating/dealConfigRating/list',
    method: 'get',
    params: query
  })
}

// 查询评级配置详细
export function getDealConfigRating(id) {
  return request({
    url: '/configrating/dealConfigRating/' + id,
    method: 'get'
  })
}

// 保存评级配置
export function saveDealConfigRating(data) {
  return request({
    url: '/configrating/dealConfigRating/save',
    method: 'post',
    data: data
  })
}

// 删除评级配置
export function delDealConfigRating(id) {
  return request({
    url: '/configrating/dealConfigRating/' + id,
    method: 'delete'
  })
}

// 导出评级配置
export function exportDealConfigRating(query) {
  return request({
    url: '/configrating/dealConfigRating/export',
    method: 'get',
    params: query
  })
}

// 新增时带出默认数据
export function addNullStandardList() {
  return request({
    url: '/configrating/dealConfigRating/addNullStandardList',
    method: 'get'
  })
}
